package com.gjy.spring.boot3;

import com.google.common.collect.Maps;
import org.springframework.boot.SpringBootVersion;
import org.springframework.core.env.MapPropertySource;
import org.springframework.core.env.StandardEnvironment;

import java.util.HashMap;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-12-18 13:02:17
 */
public class Boot6App {

    public static void main(String[] args) {
        StandardEnvironment env = new StandardEnvironment();
        HashMap<String, Object> source = Maps.newHashMap();
        source.put("spring.banner.location", "banner.txt");
        env.getPropertySources().addLast(new MapPropertySource("c", source));

        System.out.println(SpringBootVersion.getVersion());
    }
}
